package com.neno.consumer.object;

import com.neno.entity.User;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: root
 * @Date: 2018/11/10 5:24
 */
@Component
public class ObjectConsumer {
    @RabbitListener(queues = "objectQuene")
    @RabbitHandler
    public void process(User user){
        System.out.println("Receiver object : " + user);
    }
}
